/*
 * @Author: 刘泽宇
 * @Date: 2022-11-09 09:01:24
 * @LastEditors: liuzy521 liuzy521@chinaunicom.cn
 * @LastEditTime: 2023-10-26 09:37:51
 * @FilePath: \frontend\public\pagelogForDev.js
 * @Description:
 */
let staffInfo = JSON.parse(sessionStorage.getItem('staffInfo'));
var isTianyanCollectData = true;
if (isTianyanCollectData && isTianyanCollectData) {
  var uam_xy_paq = uam_xy_paq || [];
  var uam_xy_obj = new Object();
  var uam_xy_session = new Object();
  (function () {
    uam_xy_paq.push(['server_url', '/tianyan/sendlog/sendqueue']);
    // 对接系统编码进行修改
    uam_xy_paq.push(['systemCode', 'hPantw6wYDJ93bL1']);
    // 对接系统licence进行修改
    uam_xy_paq.push(['licence', 'hPantw6wYDJ93bL1']);

    // uam_xy_paq.push(['staffId', staffInfo?.loginName]);
    // uam_xy_paq.push(['provinceCode', staffInfo?.siteList[0].provinceCode]);

    var d = document,
      g = d.createElement('script'),
      s = d.getElementsByTagName('script')[0];
    g.type = 'text/javascript';
    g.async = true;
    g.defer = true;
    g.src = '/tianyan/uam_public_commonajax.js';
    s.parentNode.insertBefore(g, s);
  })();
}
